home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / misc_src / knowhow4 / work.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-01  |  290 b   |  24 lines

  1. #include <dos.h>
  2. #include <stddef.h>
  3. void main()
  4.     {
  5.     char* s = new char[165000];
  6.     if(s == NULL)
  7.     {
  8.     sound(1000);
  9.     delay(1000);
  10.     nosound();
  11.     }
  12.     else
  13.     {
  14.     sound(1000);
  15.     delay(1000);
  16.     nosound();
  17.     delay(1000);
  18.     sound(1000);
  19.     delay(1000);
  20.     nosound();
  21.     }
  22.  
  23.     }
  24.